import PageTools from './PageTools'

import UploadExcel from './UploadExcel'

import UploadImg from './UploadImg'

import ImageHolder from './ImageHolder'

import Lang from './Lang'

import ScreenFull from './ScreenFull'
// 定义组件数组
const components = [
  PageTools,
  UploadExcel,
  UploadImg,
  ImageHolder,
  Lang,
  ScreenFull
]

export default {
  install(Vue) {
    // component 每个组件
    components.forEach(component => {
      // component.name 对应组件的name属性
      Vue.component(component.name, component)
    })
    // Vue.component('PageTools', PageTools)
  }
}
